// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.logistics.entity.order;
/**
 * @see com.logistics.entity.order.WlOrder
 */
public class WlOrderDaoImpl
    extends com.logistics.entity.order.WlOrderDaoBase
{
    /**
     * @see com.logistics.entity.order.WlOrderDao#toWlOrderVO(com.logistics.entity.order.WlOrder, com.logistics.entity.order.WlOrderVO)
     */
    public void toWlOrderVO(
        com.logistics.entity.order.WlOrder source,
        com.logistics.entity.order.WlOrderVO target)
    {
        // @todo verify behavior of toWlOrderVO
        super.toWlOrderVO(source, target);
        // WARNING! No conversion for target.payCompany (can't convert source.getPayCompany():com.logistics.entity.customer.WlCustomer to java.lang.String
        // WARNING! No conversion for target.customer (can't convert source.getCustomer():com.logistics.entity.customer.WlCustomer to java.lang.String
        // WARNING! No conversion for target.referTime (can't convert source.getReferTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.bookTime (can't convert source.getBookTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.completeTime (can't convert source.getCompleteTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.planFetchTime (can't convert source.getPlanFetchTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.planUnloadTime (can't convert source.getPlanUnloadTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.booker (can't convert source.getBooker():com.logistics.entity.orga.People to java.lang.String
        // WARNING! No conversion for target.taskPeople (can't convert source.getTaskPeople():com.logistics.entity.orga.People to java.lang.String
    }


    /**
     * @see com.logistics.entity.order.WlOrderDao#toWlOrderVO(com.logistics.entity.order.WlOrder)
     */
    public com.logistics.entity.order.WlOrderVO toWlOrderVO(final com.logistics.entity.order.WlOrder entity)
    {
        // @todo verify behavior of toWlOrderVO
        return super.toWlOrderVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.logistics.entity.order.WlOrder loadWlOrderFromWlOrderVO(com.logistics.entity.order.WlOrderVO wlOrderVO)
    {
        // @todo implement loadWlOrderFromWlOrderVO
        throw new java.lang.UnsupportedOperationException("com.logistics.entity.order.loadWlOrderFromWlOrderVO(com.logistics.entity.order.WlOrderVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.logistics.entity.order.WlOrder wlOrder = this.load(wlOrderVO.getId());
        if (wlOrder == null)
        {
            wlOrder = com.logistics.entity.order.WlOrder.Factory.newInstance();
        }
        return wlOrder;
        */
    }

    
    /**
     * @see com.logistics.entity.order.WlOrderDao#wlOrderVOToEntity(com.logistics.entity.order.WlOrderVO)
     */
    public com.logistics.entity.order.WlOrder wlOrderVOToEntity(com.logistics.entity.order.WlOrderVO wlOrderVO)
    {
        // @todo verify behavior of wlOrderVOToEntity
        com.logistics.entity.order.WlOrder entity = this.loadWlOrderFromWlOrderVO(wlOrderVO);
        this.wlOrderVOToEntity(wlOrderVO, entity, true);
        return entity;
    }


    /**
     * @see com.logistics.entity.order.WlOrderDao#wlOrderVOToEntity(com.logistics.entity.order.WlOrderVO, com.logistics.entity.order.WlOrder)
     */
    public void wlOrderVOToEntity(
        com.logistics.entity.order.WlOrderVO source,
        com.logistics.entity.order.WlOrder target,
        boolean copyIfNull)
    {
        // @todo verify behavior of wlOrderVOToEntity
        super.wlOrderVOToEntity(source, target, copyIfNull);
        // No conversion for target.referTime (can't convert source.getReferTime():java.util.Date to java.util.Date
        // No conversion for target.bookTime (can't convert source.getBookTime():java.util.Date to java.util.Date
        // No conversion for target.completeTime (can't convert source.getCompleteTime():java.util.Date to java.util.Date
        // No conversion for target.planFetchTime (can't convert source.getPlanFetchTime():java.util.Date to java.util.Date
        // No conversion for target.planUnloadTime (can't convert source.getPlanUnloadTime():java.util.Date to java.util.Date
    }

}